package system.model;

import system.common.Constants;
import system.util.StringUtil;

/**
 * <pre>
 * Class : system.model.DB7_PowerBrokerDto / DB7_PowerBrokerDto.java
 * 	Define Class Object : 
 * <br>
 * </pre>
 * @author hwanLee / apexcns,Inc.
 * @version 1.1
 * @see javadoc
 * @since 2012. 9. 10.
 */
public class DB7_PowerBrokerDto { 
	/* pa_session */
	private String SESSION_ID;
	private String FILE_PATH;
	private int FILE_SIZE;
	private String REMOTE_IP;
	private String TTY;
	private String LOGIN_DATE;
	private String LOGOUT_DATE;
	private String NATIVE_SERVER;
	private String NATIVE_ID;
	private int SYSTEM_USER;
	private int STATUS;
	
	/* pa_inout, pa_output */
	private int INPUT_SEQ;
	private String INPUT_CMD;
	private String INPUT_TIME;
	private int OUTPUT_SEQ;
	private String DATA;

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getSESSION_ID()
	 * 	to get sESSION_ID
	 * <br> 
	 * @return the sESSION_ID : type of String
	 * </pre>
	 */
	public String getSESSION_ID() {
		return SESSION_ID;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setSESSION_ID()
	 * 	to set sESSION_ID
	 * <br> 
	 * @return the sESSION_ID : type of String
	 * </pre>
	 */
	public void setSESSION_ID(String sESSION_ID) {
		this.SESSION_ID = sESSION_ID;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getFILE_PATH()
	 * 	to get fILE_PATH
	 * <br> 
	 * @return the fILE_PATH : type of String
	 * </pre>
	 */
	public String getFILE_PATH() {
		return FILE_PATH;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setFILE_PATH()
	 * 	to set fILE_PATH
	 * <br> 
	 * @return the fILE_PATH : type of String
	 * </pre>
	 */
	public void setFILE_PATH(String fILE_PATH) {
		this.FILE_PATH = fILE_PATH;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getFILE_SIZE()
	 * 	to get fILE_SIZE
	 * <br> 
	 * @return the fILE_SIZE : type of int
	 * </pre>
	 */
	public int getFILE_SIZE() {
		return FILE_SIZE;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setFILE_SIZE()
	 * 	to set fILE_SIZE
	 * <br> 
	 * @return the fILE_SIZE : type of int
	 * </pre>
	 */
	public void setFILE_SIZE(int fILE_SIZE) {
		this.FILE_SIZE = fILE_SIZE;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getREMOTE_IP()
	 * 	to get rEMOTE_IP
	 * <br> 
	 * @return the rEMOTE_IP : type of String
	 * </pre>
	 */
	public String getREMOTE_IP() {
		return REMOTE_IP;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setREMOTE_IP()
	 * 	to set rEMOTE_IP
	 * <br> 
	 * @return the rEMOTE_IP : type of String
	 * </pre>
	 */
	public void setREMOTE_IP(String rEMOTE_IP) {
		this.REMOTE_IP = rEMOTE_IP;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getTTY()
	 * 	to get tTY
	 * <br> 
	 * @return the tTY : type of String
	 * </pre>
	 */
	public String getTTY() {
		return TTY;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setTTY()
	 * 	to set tTY
	 * <br> 
	 * @return the tTY : type of String
	 * </pre>
	 */
	public void setTTY(String tTY) {
		this.TTY = tTY;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getLOGIN_DATE()
	 * 	to get lOGIN_DATE
	 * <br> 
	 * @return the lOGIN_DATE : type of String
	 * </pre>
	 */
	public String getLOGIN_DATE() {
		return LOGIN_DATE;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setLOGIN_DATE()
	 * 	to set lOGIN_DATE
	 * <br> 
	 * @return the lOGIN_DATE : type of String
	 * </pre>
	 */
	public void setLOGIN_DATE(String lOGIN_DATE) {
		this.LOGIN_DATE = lOGIN_DATE;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getLOGOUT_DATE()
	 * 	to get lOGOUT_DATE
	 * <br> 
	 * @return the lOGOUT_DATE : type of String
	 * </pre>
	 */
	public String getLOGOUT_DATE() {
		return LOGOUT_DATE;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setLOGOUT_DATE()
	 * 	to set lOGOUT_DATE
	 * <br> 
	 * @return the lOGOUT_DATE : type of String
	 * </pre>
	 */
	public void setLOGOUT_DATE(String lOGOUT_DATE) {
		this.LOGOUT_DATE = lOGOUT_DATE;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getNATIVE_SERVER()
	 * 	to get nATIVE_SERVER
	 * <br> 
	 * @return the nATIVE_SERVER : type of String
	 * </pre>
	 */
	public String getNATIVE_SERVER() {
		return NATIVE_SERVER;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setNATIVE_SERVER()
	 * 	to set nATIVE_SERVER
	 * <br> 
	 * @return the nATIVE_SERVER : type of String
	 * </pre>
	 */
	public void setNATIVE_SERVER(String nATIVE_SERVER) {
		this.NATIVE_SERVER = nATIVE_SERVER;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getNATIVE_ID()
	 * 	to get nATIVE_ID
	 * <br> 
	 * @return the nATIVE_ID : type of String
	 * </pre>
	 */
	public String getNATIVE_ID() {
		return NATIVE_ID;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setNATIVE_ID()
	 * 	to set nATIVE_ID
	 * <br> 
	 * @return the nATIVE_ID : type of String
	 * </pre>
	 */
	public void setNATIVE_ID(String nATIVE_ID) {
		this.NATIVE_ID = nATIVE_ID;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getSYSTEM_USER()
	 * 	to get sYSTEM_USER
	 * <br> 
	 * @return the sYSTEM_USER : type of int
	 * </pre>
	 */
	public int getSYSTEM_USER() {
		return SYSTEM_USER;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setSYSTEM_USER()
	 * 	to set sYSTEM_USER
	 * <br> 
	 * @return the sYSTEM_USER : type of int
	 * </pre>
	 */
	public void setSYSTEM_USER(int sYSTEM_USER) {
		this.SYSTEM_USER = sYSTEM_USER;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getSTATUS()
	 * 	to get sTATUS
	 * <br> 
	 * @return the sTATUS : type of int
	 * </pre>
	 */
	public int getSTATUS() {
		return STATUS;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setSTATUS()
	 * 	to set sTATUS
	 * <br> 
	 * @return the sTATUS : type of int
	 * </pre>
	 */
	public void setSTATUS(int sTATUS) {
		this.STATUS = sTATUS;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getINPUT_SEQ()
	 * 	to get iNPUT_SEQ
	 * <br> 
	 * @return the iNPUT_SEQ : type of int
	 * </pre>
	 */
	public int getINPUT_SEQ() {
		return INPUT_SEQ;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setINPUT_SEQ()
	 * 	to set iNPUT_SEQ
	 * <br> 
	 * @return the iNPUT_SEQ : type of int
	 * </pre>
	 */
	public void setINPUT_SEQ(int iNPUT_SEQ) {
		this.INPUT_SEQ = iNPUT_SEQ;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getINPUT_CMD()
	 * 	to get iNPUT_CMD
	 * <br> 
	 * @return the iNPUT_CMD : type of String
	 * </pre>
	 */
	public String getINPUT_CMD() {
		return INPUT_CMD;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setINPUT_CMD()
	 * 	to set iNPUT_CMD
	 * <br> 
	 * @return the iNPUT_CMD : type of String
	 * </pre>
	 */
	public void setINPUT_CMD(String iNPUT_CMD) {
		this.INPUT_CMD = iNPUT_CMD;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getINPUT_TIME()
	 * 	to get iNPUT_TIME
	 * <br> 
	 * @return the iNPUT_TIME : type of String
	 * </pre>
	 */
	public String getINPUT_TIME() {
		return INPUT_TIME;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setINPUT_TIME()
	 * 	to set iNPUT_TIME
	 * <br> 
	 * @return the iNPUT_TIME : type of String
	 * </pre>
	 */
	public void setINPUT_TIME(String iNPUT_TIME) {
		this.INPUT_TIME = iNPUT_TIME;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getOUTPUT_SEQ()
	 * 	to get oUTPUT_SEQ
	 * <br> 
	 * @return the oUTPUT_SEQ : type of int
	 * </pre>
	 */
	public int getOUTPUT_SEQ() {
		return OUTPUT_SEQ;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setOUTPUT_SEQ()
	 * 	to set oUTPUT_SEQ
	 * <br> 
	 * @return the oUTPUT_SEQ : type of int
	 * </pre>
	 */
	public void setOUTPUT_SEQ(int oUTPUT_SEQ) {
		this.OUTPUT_SEQ = oUTPUT_SEQ;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.getDATA()
	 * 	to get dATA
	 * <br> 
	 * @return the dATA : type of String
	 * </pre>
	 */
	public String getDATA() {
		return DATA;
	}

	/** <pre>
	 * Method : DB7_PowerBrokerDto.setDATA()
	 * 	to set dATA
	 * <br> 
	 * @return the dATA : type of String
	 * </pre>
	 */
	public void setDATA(String dATA) {
		this.DATA = dATA;
	}

	public String toStringInput() {
		String delimiter = Constants.delimiter;

	    String res = INPUT_SEQ + delimiter;
	    res += StringUtil.convertColumnData(INPUT_CMD, 1) + delimiter;
	    res += StringUtil.rTrim(INPUT_TIME) + delimiter;
	    res += StringUtil.rTrim(SESSION_ID) + delimiter;
	    res += StringUtil.rTrim(FILE_PATH) + delimiter;
	    res += FILE_SIZE + delimiter;
	    res += StringUtil.rTrim(REMOTE_IP) + delimiter;
	    res += StringUtil.rTrim(TTY) + delimiter;
	    res += StringUtil.rTrim(LOGIN_DATE) + delimiter;
	    res += StringUtil.rTrim(LOGOUT_DATE) + delimiter;
	    res += StringUtil.rTrim(NATIVE_SERVER) + delimiter;
	    res += StringUtil.rTrim(NATIVE_ID) + delimiter;
	    res += SYSTEM_USER + delimiter;
	    res += STATUS + "\n";
	    
	    return res;
	}

	public String toStringOutput() {
		String delimiter = Constants.delimiter;

	    String res = OUTPUT_SEQ + delimiter;
	    res += StringUtil.rTrim(DATA) + delimiter;
	    res += INPUT_SEQ + delimiter;
	    res += StringUtil.rTrim(SESSION_ID) + delimiter;
	    res += StringUtil.rTrim(FILE_PATH) + delimiter;
	    res += FILE_SIZE + delimiter;
	    res += StringUtil.rTrim(REMOTE_IP) + delimiter;
	    res += StringUtil.rTrim(TTY) + delimiter;
	    res += StringUtil.rTrim(LOGIN_DATE) + delimiter;
	    res += StringUtil.rTrim(LOGOUT_DATE) + delimiter;
	    res += StringUtil.rTrim(NATIVE_SERVER) + delimiter;
	    res += StringUtil.rTrim(NATIVE_ID) + delimiter;
	    res += SYSTEM_USER + delimiter;
	    res += STATUS + "\n";
	    
	    return res;
	}
}
